# -*- coding: utf-8 -*-


def isSameDay(time1, time2):
    #比较两个时间戳是否是同一天
    if not time1 or not time2:
        return False
    day1 = time1 // 86400
    day2 = time2 // 86400
    if day1 == day2:
        return True
    return False

def isSameWeek(time1, time2):
    #比较两个时间戳是否是同一周
    if None == time1 or None == time2:
        return False
    week1 = (time1 // 86400 + 4) // 7
    week2 = (time2 // 86400 + 4) // 7
    if week1 == week2:
        return True
    return False
